<?php defined('SYSPATH') or die('No direct script access.'); ?>
<div class="panel panel-default">
    <div class="panel-heading">Upload new image</div>
    <div class="panel-body">
        <form class="form-inline" role="form" action="<?php echo Route::url('default', array('controller' => 'gallery', 'action' => 'create')); ?>" method="post" enctype="multipart/form-data">
            <div class="gallery upload-form">
                <div class="form-group">
                    <input type="file" name="image">
                </div>
                <div class="form-group col-xs-4">
                    <input class="form-control" type="text" name="textData">
                    <span class="help-block">Description(50 letters max)</span>
                </div>
                <button type="submit" class="btn btn-default">Upload</button>
            </div>
        </form>
    </div>
</div>